.main-table {
    overflow: auto;
    white-space: nowrap;
    position:  absolute;
    top: 105px; 
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    table {
        border-left: 1px solid $bd-color;
        border-collapse: separate;
        font-size: 13px;
        width: 100%;
    }
    td, th {
        height: 0px;
        padding: 15px;
        display: none;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 20px;
        max-width: 100px;
    }
    th {
        position: relative;
        border-top: 1px solid $bd-color;
        border-right: 1px solid $bd-color;
        border-bottom: 1px solid $bd-color;
        background-color: $bg-color;
        z-index: 1;
        span {
            line-height: 20px;
        }
    }
    td {
        border-right: 1px solid $bd-color;
        border-bottom: 1px solid $bd-color;
        height: 30px;
    }
    tr > *:first-child {
        position: relative;
        z-index: 2;
        font-size: 14px;
        display: table-cell;
        font-weight: 700;
    }
    th:first-child {
        z-index: 3;
    }
    tbody {
        tr:nth-child(odd) td{
            background-color: #FFF;
        }
        tr:nth-child(even) td{
            background-color: $gray-bg;
        }
    }
    .th-add-filter {
        display: none;
        margin: 0 auto;
        border: none;
        padding: 2px 5px;
        font-size: 14px;
        color: $gray;
        background-color: transparent;
    }
}

@media screen and (max-width: 639px){
    .main-table {
        th {
            top: 0 !important;
        }
    }
}
@media screen and (min-width: $vw-small){
    .main-table {
        bottom: 32px;
        table {
            width: auto;
        }
        td, th {
            padding: 10px;
            display: table-cell;
            max-width: none;
        }
        
        .th-add-filter {
            display: block;
        }
    }
}